# yum install epel-release
# yum install libnss-mysql
vi /etc/libnss-mysql-root.cfg
------------------------------------
username nss-root
password passwd
------------------------------------
vi /etc/libnss-mysql.cfg
------------------------------------
username nss-user
password passwd
------------------------------------
vi /etc/nsswitch.conf
------------------------------------
# passwd: db files
# shadow: db files
# group: db files
passwd: files sss mysql
shadow: files sss mysql
group: files sss mysql
------------------------------------
# getent passwd
# groups myid
# getent shadow | grep myid
------------------------------------